package com.decoration.basic.util;

public class SignUtil {
	public static boolean checkSign(StringBuilder builder, String sign) {
		if ("".equals(builder.toString()) || sign == null || "".equals(sign)) {
			return false;
		}
//        builder.append(Global.TOKEN);
//        return sign.equals(MD5Util.getMD5(builder.toString(), Global.TOKEN_SALT));
		return true;
	}

	public static String getFileName(String path){
		if (StringUtil.isEmpty(path)){
			return null;
		}
		if (path.contains("/")){
			path = path.substring(path.lastIndexOf("/")+1);
		}
		return path;
	}
}